#Include <ScreenCapture.au3>
#Include <Function For Find.au3>
#Include <Date.au3>

Common_WriteCurrentFunctionNameToTempTXT($sFindFunctionName)

Local $tCur = _Date_Time_GetSystemTime()
Local $tNew = _Date_Time_EncodeSystemTime(04, 26, 2013, 00, 00, 00)   ; @MON, @MDAY, @YEAR, @HOUR, @MIN, @SEC
_Date_Time_SetLocalTime(DllStructGetPtr($tNew)) 

Dim $bDebug = False

If Not $bDebug Then
	
	Find1_1_3()
	Find1_1_4()
	Find1_1_6()
	Find2_1_1()
	Find2_1_2()
	Find2_1_3()
	Find2_1_4()
	Find2_1_5()
	Find2_1_7()
	Find2_1_9() 
	Find2_1_10()
	Find2_1_11()
	Find2_1_12()
	Find2_1_13()
	Find2_1_14()
	Find2_1_15()
	Find2_1_16()
	Find2_1_17()
	Find2_1_18()
	Find2_1_42()
	Find2_1_43()
	Find2_1_45()
	Find2_1_46()
	Find2_2_1()
	If Not $bPageViewType Then   ;No "Find Next" menu in page viewer.
		Find2_3_1()
		Find2_3_2()
		Find2_3_6()
		Find2_3_7()
		Find2_3_8()
		Find2_3_9()
		Find2_3_10()
	EndIf
EndIf

_Date_Time_SetLocalTime(DllStructGetPtr($tCur))
CloseOpenedExcel($oExcel)
Func  Find1_1_3()
	Local $TestCaseID = "1.1.3"  
	$sCusMsg = 'The image is Search File window'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find1_1_3_($TestCaseID,$bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find1_1_3_($TestCaseID,$bReproduceTestCase)
	
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase) 
	Return 0
EndFunc

Func  Find1_1_4()
	Local $TestCaseID = "1.1.4"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find1_1_4_($TestCaseID,$bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find1_1_4_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	OpenMenu("Edit")
	Sleep(300)
	Local $hMenu = WinGetHandle($sMenuIdentify)
	If $hMenu = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
		Return 1   
	EndIf
	Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase) 
	Return 0
EndFunc

Func  Find1_1_6()
	Local $TestCaseID = "1.1.6"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $iTestcaseExecutedResult = Find1_1_6_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find1_1_6_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	OpenMenu("Tools")
	Sleep(300)
	Local $hMenu = WinGetHandle($sMenuIdentify)
	If $hMenu = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase) 
	Return 0
EndFunc

Func  Find2_1_1()
	Local $TestCaseID = "2.1.1"  
		$sCusMsg = 'Alert message about input serch text'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_1_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_1_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	ClickSearchButton($hFindDialog)
	If WinWaitActive($sAlertmessage_EmptySearch, "", 5) = 0 Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hAlertmessage_EmptySearch = WinGetHandle($sAlertmessage_EmptySearch)
	If $hAlertmessage_EmptySearch = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hAlertmessage_EmptySearch)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase) 
	Return 0
EndFunc

Func  Find2_1_2()
	Local $TestCaseID = "2.1.2"  
		$sCusMsg = '2 files is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_2_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_2_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog,"@#")
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_3()
	Local $TestCaseID = "2.1.3"  
		$sCusMsg = 'Alert message about input serch text'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_3_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_3_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog," ")
	ClickSearchButton($hFindDialog)
	If WinWaitActive($sAlertmessage_EmptySearch, "", 5) = 0 Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hAlertmessage_EmptySearch = WinGetHandle($sAlertmessage_EmptySearch)
	If $hAlertmessage_EmptySearch = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hAlertmessage_EmptySearch)
	Send('{ESC}')
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_4()
	Local $TestCaseID = "2.1.4"  
		$sCusMsg = '1 file is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_4_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_4_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog,"Bui     l")
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_5()
	Local $TestCaseID = "2.1.5"  
		$sCusMsg = '1 file is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_5_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_5_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog,"Bui ")
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_7()
	Local $TestCaseID = "2.1.7"  
		$sCusMsg =  '1 file is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_7_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_7_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog,"testtesttesttesttesttesttesttesttesttesttesttestt")
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_9()
	Local $TestCaseID = "2.1.9"  
		$sCusMsg = '1 file is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_9_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_9_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Local $file = FileOpen($sSampleFolderPath & "Double_Byte.txt" , 0)
	If $file = -1 Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0	
	EndIf
	Local $line = FileReadLine ($file, 1)	
	FileClose($file)
	SetLocateTextOfSearch($hFindDialog, $line)
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_10()
	Local $TestCaseID = "2.1.10"  
		$sCusMsg ='1 file is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_10_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_10_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	SetLocateTextOfSearch($hFindDialog, 'AAAA')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_11()
	Local $TestCaseID = "2.1.11"  
		$sCusMsg = '1 file is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_11_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_11_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	CheckonCaseSensitive($hFindDialog)
	SetLocateTextOfSearch($hFindDialog, 'AAAA')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_12()
	Local $TestCaseID = "2.1.12"  
		$sCusMsg = '1 file is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_12_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_12_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	SetLocateTextOfSearch($hFindDialog, 'aaaa')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_13()
	Local $TestCaseID = "2.1.13"  
		$sCusMsg = 'No file found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_13_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_13_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	CheckonCaseSensitive($hFindDialog)
	SetLocateTextOfSearch($hFindDialog, 'aaaa')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_14()
	Local $TestCaseID = "2.1.14"  
		$sCusMsg = '1 file is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_14_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_14_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	SetLocateTextOfSearch($hFindDialog, 'AaAA')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_15()
	Local $TestCaseID = "2.1.15"  
		$sCusMsg = 'No file found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_15_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_15_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	CheckonCaseSensitive($hFindDialog)
	SetLocateTextOfSearch($hFindDialog, 'AaAA')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_16()
	Local $TestCaseID = "2.1.16"  
		$sCusMsg = '1 file is found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_16_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_16_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	SetLocateTextOfSearch($hFindDialog, 'AAaA')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_17()
	Local $TestCaseID = "2.1.17"  
		$sCusMsg = 'No file found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $iTestcaseExecutedResult = Find2_1_17_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_17_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	CheckonCaseSensitive($hFindDialog)
	SetLocateTextOfSearch($hFindDialog, 'AAaA')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_18()
	Local $TestCaseID = "2.1.18"  
		$sCusMsg = '4 items found'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_18_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_18_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	SetLocateTextOfSearch($hFindDialog, 'A')
	ClickSearchButton($hFindDialog)
	Sleep(3000)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_24()
	Local $TestCaseID = "2.1.24"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_24_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_24_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	FileCopy($sSampleFolderPath & 'form.doc', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	If $hThumbnailView = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	Common_SleepTime(10)
	WinActivate($hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 0 , "left", True)
	Common_SleepTime(2)
	ControlClick($hPMHandle, '', $sPageViewButtonInToolbarCtrInfo)
	Common_SleepTime(10)
	AddBookmarkHighliht()
	
	;Ssave the Bookmark
	If $bPageViewType = 1 Then
		;Exit Page viewer
		Send("!f")
		Common_SleepTime(1)
		Send("e")
	Else		
		ControlClick($hPMHandle, "", $sSwicthToThumbnailViewButtonCtrInfo)
	EndIf
	
	Common_SleepTime(1)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	CheckonBookmark()
	Checkonhighlight()
	SetLocateTextOfSearch($hFindDialog, 'f')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_25()
	Local $TestCaseID = "2.1.25"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_25_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_25_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	FileCopy($sSampleFolderPath & 'form.doc', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	If $hThumbnailView = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	Common_SleepTime(10)
	WinActivate($hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 0 , "left", True)
	Common_SleepTime(2)
	ControlClick($hPMHandle, '', $sPageViewButtonInToolbarCtrInfo)
	Common_SleepTime(10)
	AddBookmarkHighliht()	
	
	;Ssave the Bookmark
	If $bPageViewType = 1 Then
		;Exit Page viewer
		Send("!f")
		Common_SleepTime(1)
		Send("e")
	Else		
		ControlClick($hPMHandle, "", $sSwicthToThumbnailViewButtonCtrInfo)
	EndIf
	
	ControlClick($hPMHandle, "", $sSwicthToThumbnailViewButtonCtrInfo)
	Common_SleepTime(1)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	CheckonBookmark()
	SetLocateTextOfSearch($hFindDialog, 'f')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_26()
	Local $TestCaseID = "2.1.26"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_26_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_26_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	FileCopy($sSampleFolderPath & 'form.doc', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	If $hThumbnailView = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	Common_SleepTime(10)
	WinActivate($hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 0 , "left", True)
	Common_SleepTime(2)
	ControlClick($hPMHandle, '', $sPageViewButtonInToolbarCtrInfo)
	Common_SleepTime(10)
	AddBookmarkHighliht()	
	
	;Ssave the Bookmark
	If $bPageViewType = 1 Then
		;Exit Page viewer
		Send("!f")
		Common_SleepTime(1)
		Send("e")
	Else		
		ControlClick($hPMHandle, "", $sSwicthToThumbnailViewButtonCtrInfo)
	EndIf
	
	ControlClick($hPMHandle, "", $sSwicthToThumbnailViewButtonCtrInfo)
	Common_SleepTime(1)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Author")
	SelectFindOptions("Annotations")
	SelectFindOptions("Keywords")
	SelectFindOptions("Memo")
	SelectFindOptions("OCR results")
	SelectFindOptions("Contents")
	Checkonhighlight()
	SetLocateTextOfSearch($hFindDialog, 'f')
	ClickSearchButton($hFindDialog)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_34()
	Local $TestCaseID = "2.1.34"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_34_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_34_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $sTempPath = $sFunctionFolderPath & 'Delete'
	DirRemove($sTempPath, 1)
	if DirCreate($sTempPath) = 0 Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	If $hThumbnailView = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	If Not SetSearchPath($sTempPath) Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	 
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'test')
	DirRemove($sTempPath, 1)
	ClickSearchButton($hFindDialog)
	If WinWaitActive($sAlertmessage_EmptySearch, "", 5) = 0 Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hAlertmessage_EmptySearch = WinGetHandle($sAlertmessage_EmptySearch)
	If $hAlertmessage_EmptySearch = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hAlertmessage_EmptySearch)
	Send('{ESC}')
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_42()
	Local $TestCaseID = "2.1.42"  
		$sCusMsg = 'The image is page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_42_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_42_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	 
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'AAAA')
	ClickSearchButton($hFindDialog)
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SleepTime(12)
	Local $hPageView = ControlGetHandle($hPMHandle, '', $iPageviewInPagemanagerCtrInfo)
	if $hPageView = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	
	If $bPageViewType Then
		Local $hPageViwerImaageView = ControlGetHandle($sPageViwerWindowClass,'',$PageViwerImaageView)
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageViwerImaageView)
	Else
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageView)
	EndIf
	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_43()
	Local $TestCaseID = "2.1.43"  
		$sCusMsg = 'The image is page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_43_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_43_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	 
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'form.doc')
	ClickSearchButton($hFindDialog)
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SleepTime(15)
	Local $hPageView = ControlGetHandle($hPMHandle, '', $iPageviewInPagemanagerCtrInfo)
	if $hPageView = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf			
	WinActivate($hPMHandle)
	ControlClick($hPMHandle, '', $iPageviewInPagemanagerCtrInfo, 'left', 2)
	Common_SleepTime(1)
	
	If $bPageViewType Then
		Local $hPageViwerView = ControlGetHandle($sPageViwerWindowClass,'',$PageViwerDocView)
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageViwerView)
	Else
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageView)
	EndIf

	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_45()
	Local $TestCaseID = "2.1.45"  
		$sCusMsg = 'The image is page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_45_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_45_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	 
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'b')
	ClickSearchButton($hFindDialog)
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SleepTime(15)
	Local $hPageView = ControlGetHandle($hPMHandle, '', $iPageviewInPagemanagerCtrInfo)
	if $hPageView = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf			
	WinActivate($hPMHandle)
	
	If $bPageViewType Then
		Local $hPageViwerView = ControlGetHandle($sPageViwerWindowClass,'',$PageViwerImaageView)
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageViwerView)
	Else
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageView)
	EndIf

	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_1_46()
	Local $TestCaseID = "2.1.46"  
		$sCusMsg = 'The image TXT page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_1_46_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_1_46_($TestCaseID, $bReproduceTestCase) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	 
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'b')
	ClickSearchButton($hFindDialog)
	If Not SelectSearchResult(1) Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	If Not ClickGotoButton() Then 
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SleepTime(15)
	Local $hPageView = ControlGetHandle($hPMHandle, '', $iPageviewInPagemanagerCtrInfo)
	if $hPageView = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf			
	WinActivate($hPMHandle)
	
	If $bPageViewType Then
		Local $hPageViwerView = ControlGetHandle($sPageViwerWindowClass,'',$PageViwerDocView)
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageViwerView)
	Else
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageView)
	EndIf
	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_2_1()
	Local $TestCaseID = "2.2.1"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_2_1_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_2_1_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_2_2()
	Local $TestCaseID = "2.2.2"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_2_2_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_2_2_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Contents")
	Common_SleepTime(1)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_2_3()
	Local $TestCaseID = "2.2.3"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_2_3_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_2_3_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SelectFindOptions("Contents")
	Common_SleepTime(1)
	CheckonIndexSearch()
	SetLocateTextOfSearch($hFindDialog, 'b')
	ClickSearchButton($hFindDialog)
	Local $h = WinGetHandle($sIndexSearchAlert)
	If $h = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$h)
	Send('{ESC}')
	CloseFindDialog($hFindDialog)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_3_1()
	Local $TestCaseID = "2.3.1"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_3_1_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_3_1_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, '&@')
	ClickSearchButton($hFindDialog)
	CloseFindDialog($hFindDialog)
	OpenMenu("Edit")
	Sleep(300)
	Local $hMenu = WinGetHandle($sMenuIdentify)
	If $hMenu = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu)
	Send('{ESC}')
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_3_2()
	Local $TestCaseID = "2.3.2"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_3_2_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_3_2_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'ooooooooooooooooooooo')
	ClickSearchButton($hFindDialog)
	CloseFindDialog($hFindDialog)
	OpenMenu("Edit")
	Sleep(300)
	Local $hMenu = WinGetHandle($sMenuIdentify)
	If $hMenu = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu)
	Send('{ESC}')
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_3_6()
	Local $TestCaseID = "2.3.6"  
		$sCusMsg = 'The image building page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_3_6_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_3_6_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'd')
	ClickSearchButton($hFindDialog)
	If Not SelectSearchResult(1) Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_SleepTime(8)
	WinActivate($hPMHandle)
	OpenMenu("Edit")
	Sleep(300)
	Send('n')
	Common_SleepTime(12)
	Local $hPageView = ControlGetHandle($hPMHandle, '', $iPageviewInPagemanagerCtrInfo)
	if $hPageView = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageView)
	Send('{ESC}')
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_3_7()
	Local $TestCaseID = "2.3.7"  
		$sCusMsg = 'The image TXT page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_3_7_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_3_7_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'd')
	ClickSearchButton($hFindDialog)
	If Not SelectSearchResult(2) Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_SleepTime(8)
	WinActivate($hPMHandle)
	OpenMenu("Edit")
	Sleep(300)
	Send('n')
	Common_SleepTime(12)
	WinActivate($hPMHandle)
	OpenMenu("Edit")
	Sleep(300)
	Send('n')
	Common_SleepTime(20)
	Local $hPageView = ControlGetHandle($hPMHandle, '', $iPageviewInPagemanagerCtrInfo)
	if $hPageView = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageView)
	Send('{ESC}')
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_3_8()
	Local $TestCaseID = "2.3.8"  
		$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)	
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_3_8_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_3_8_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, '@')
	ClickSearchButton($hFindDialog)
	If Not SelectSearchResult(2) Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_SleepTime(8)
	OpenMenu("Edit")
	Sleep(300)
	Send('n')
	Common_SleepTime(12)
	WinActivate($hPMHandle)
	OpenMenu("Edit")
	Sleep(300)
	Send('n')
	Common_SleepTime(20)
	OpenMenu("Edit")
	Sleep(300)
	Local $hMenu = WinGetHandle($sMenuIdentify)
	If $hMenu = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu)
	Send('{ESC}')
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc

Func  Find2_3_9()
	Local $TestCaseID = "2.3.9"  
		$sCusMsg = 'The image is Bizcard 5 page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_3_9_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_3_9_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'd')
	ClickSearchButton($hFindDialog)
	If Not SelectSearchResult(2) Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_SleepTime(20)
	WinActivate($hPMHandle)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	SetLocateTextOfSearch($hFindDialog, 'b')
	WinActivate($hFindDialog)
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_SleepTime(20)
	WinActivate($hPMHandle)
	OpenMenu("Edit")
	Sleep(300)
	Send('n')
	Common_SleepTime(20)
	Local $hPageView = ControlGetHandle($hPMHandle, '', $iPageviewInPagemanagerCtrInfo)
	if $hPageView = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc
 
Func  Find2_3_10()
	Local $TestCaseID = "2.3.10" 
	$sCusMsg = 'The image is Bizcard 5 page view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sExcelSheetName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sFindFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $iTestcaseExecutedResult = Find2_3_10_($TestCaseID, $bReproduceTestCase)
	Common_Close_PM($hPMHandle)
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	If $iTestcaseExecutedResult = 0 Then
		Return 0
	Else
		Return 1
	EndIf
EndFunc

Func Find2_3_10_($TestCaseID, $bReproduceTestCase)
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForFind()
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	If $hPMHandle = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sFunctionFolderName)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	SetLocateTextOfSearch($hFindDialog, 'd')
	ClickSearchButton($hFindDialog)
	If Not SelectSearchResult(2) Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	Common_SleepTime(20)
	WinActivate($hPMHandle)
	If Not OpenFindDialog() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf
	Local $hFindDialog = WinGetHandle($sFindDialogTitle)
	If $hFindDialog = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf	
	If Not SelectSearchResult(1) Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0
	EndIf	
	If Not ClickGotoButton() Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf		
	Common_SleepTime(20)
	WinActivate($hPMHandle)
	Local $hPageView = ControlGetHandle($hPMHandle, '', $iPageviewInPagemanagerCtrInfo)
	if $hPageView = "" Then
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)
		Return 0		
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hPageView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sFindFunctionName,$bReproduceTestCase)    
		Return 1   
	EndIf
	Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sFindFunctionName,$bReproduceTestCase)  
	Return 0
EndFunc




